/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.ui.controls;

import ac.settings.dataModelurls;
import java.awt.Dimension;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 *
 * @author empcl_000
 */
public class PCLButton extends JButton implements dataModelurls {
    
    ImageIcon closeXIcon;
    private Dimension closeButtonSize;
    
    public PCLButton() {
        
        closeXIcon = new ImageIcon(getClass().getResource(URL_Image + "new.png"));
        closeButtonSize = new Dimension(closeXIcon.getIconWidth() + 2, closeXIcon.getIconHeight() + 2);
        
        setIcon(closeXIcon);
        
        setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        setVerticalTextPosition(javax.swing.SwingConstants.CENTER);
        
        setMargin(new java.awt.Insets(5, 20, 5, 20));
        
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                pCLImage1MouseClicked(evt);
            }
        });
        
    }
    
    public void pCLImage1MouseClicked(java.awt.event.MouseEvent evt) {
      
      
        
    }

    //
    private String type;
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
}
